﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ShoppingCart.aspx.cs" Inherits="ShoppingCart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div class="cleaner_with_height"></div>
  <asp:GridView runat="server" ID="gvShoppingCart" 
        AutoGenerateColumns="False" 
        EmptyDataText="Don't Have Any Posting In Your Card" Font-Bold="true"  GridLines="None" 
        Width="94%" CellPadding="4" ShowFooter="false" DataKeyNames="PostingID" 
        OnRowCommand="gvShoppingCart_RowCommand" >  
                <HeaderStyle HorizontalAlign="Left" BackColor="#3D7169" ForeColor="#FFFFFF" />   
                <RowStyle Font-Bold="true" BackColor="#EFF3FB" ForeColor="#333333" />
                <Columns>  
                        <asp:TemplateField ItemStyle-Width="250px" >                
                           <HeaderTemplate> Posting Name </HeaderTemplate>
                               <ItemTemplate> <%#Eval("PostingName") %> </ItemTemplate>
                             </asp:TemplateField>

                    <asp:TemplateField HeaderText="Quantity">  
                        <ItemTemplate>  
                            <asp:TextBox runat="server" ID="txtQuantity" Columns="5" Text="1"></asp:TextBox>
                            <asp:Button runat="server" ID="btnRemove" Text="Delete" CommandName="Remove" CommandArgument='<%# Eval("PostingID") %>' style="font-size:12px;"></asp:Button>  
  
                        </ItemTemplate>  

                    </asp:TemplateField>  
                  
                     <asp:TemplateField  >                
                           <HeaderTemplate> Price </HeaderTemplate>
                              <ItemTemplate>
                               <%#Eval("Price") %>
                              </ItemTemplate>
                             </asp:TemplateField>
                 
                </Columns>  
            </asp:GridView>  
  
            <br />  
            <asp:Button ID="btnContinue" runat="server" Text="Buy More" 
        onclick="btnContinue_Click" Width="80px" />
            <asp:Button ID="btnPay" Width="80px"  runat="server" Text="Order" 
        onclick="btnPay_Click" />


</asp:Content>

